package com.crm.system.service.impl.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysCompanyPermission;
import com.crm.service.sys.permissionManagement.SysCompanyPermissionDbService;
import com.crm.system.service.permissionManagement.SysCompanyPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2020/12/10 13:24
 */
@Service
public class SysCompanyPermissionServiceImpl implements SysCompanyPermissionService {
    @Autowired
    SysCompanyPermissionDbService sysCompanyPermissionDbService;

    @Override
    public int batchDelSysCompanyPermissionByMPIds(List<String> menuPermissionIds) {
        return sysCompanyPermissionDbService.batchDelSysCompanyPermissionByMPIds(menuPermissionIds);
    }

    @Override
    public List<SysCompanyPermission> selectSysCompanyPermissionList(List<String> menuPermissionIdList) {
        return sysCompanyPermissionDbService.selectSysCompanyPermissionList(menuPermissionIdList);
    }
}
